package demo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor

//家电类
public class JD implements Switch {
    private String name;
    private boolean status;//状态

    @Override//实现按钮
    public void press() {
        status = !status;
    }
}
